package com.woniu.order.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 订单中所包含的商品
 * </p>
 *
 * @author lydia
 * @since 2023-02-16
 */
@Data
@TableName("t_order_item")
@ApiModel(value = "OrderItem对象", description = "订单中所包含的商品")
public class OrderItem implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("主键")
      @TableId(value = "id", type = IdType.AUTO)
      private String id;

      @ApiModelProperty("订单id")
      private String orderId;

      @ApiModelProperty("订单编号")
      private String orderNo;

      @ApiModelProperty("商品编号")
      private String productId;

      @ApiModelProperty("商品图片")
      private String productPic;

      @ApiModelProperty("商品名称")
      private String productName;

      @ApiModelProperty("货号")
      private String productSn;

      @ApiModelProperty("销售价格")
      private BigDecimal productPrice;

      @ApiModelProperty("购买数量")
      private Integer productQuantity;

      @ApiModelProperty("分类编号")
      private String productCategoryId;
}
